pub mod error;
mod value_convert;

pub use oh_napi_derive::napi;
pub use ctor::ctor;
pub use value_convert::*;
pub use oh_napi_sys::*;

#[macro_export] 
macro_rules! try_to {
    ($env: ident, $f: expr) => {
        match $f{
            Ok(args) => {args}
            Err(e) => {
                $env.throw_this_error(e);
                return null_mut();
            }
        };
    };
}



#[cfg(test)]
mod test{


    #[test]
    fn it_works(){
    }
}